package com.ruoyi.room.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 直播间管理对象 live_room
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
public class LiveRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 直播间ID */
    @Excel(name = "直播间ID")
    private Long roomId;

    /** 直播间名称 */
    @Excel(name = "直播间名称")
    private String roomName;

    /** 主播ID */
    @Excel(name = "主播ID")
    private Long hostId;

    /** 主播姓名 */
    @Excel(name = "主播姓名")
    private String hostName;

    /** 直播间分类 */
    @Excel(name = "直播间分类")
    private String category;

    /** 在线人数 */
    @Excel(name = "在线人数")
    private Long onlineUsers;

    /** 开播时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开播时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 直播间状态 */
    @Excel(name = "直播间状态")
    private String status;

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setRoomName(String roomName) 
    {
        this.roomName = roomName;
    }

    public String getRoomName() 
    {
        return roomName;
    }
    public void setHostId(Long hostId) 
    {
        this.hostId = hostId;
    }

    public Long getHostId() 
    {
        return hostId;
    }
    public void setHostName(String hostName) 
    {
        this.hostName = hostName;
    }

    public String getHostName() 
    {
        return hostName;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setOnlineUsers(Long onlineUsers) 
    {
        this.onlineUsers = onlineUsers;
    }

    public Long getOnlineUsers() 
    {
        return onlineUsers;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("roomName", getRoomName())
            .append("hostId", getHostId())
            .append("hostName", getHostName())
            .append("category", getCategory())
            .append("onlineUsers", getOnlineUsers())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .toString();
    }
}
